<template>
  <div class="process-container">
    <div class='process-bg' :style="{'height': height}">
      <div class='process-value'  :style="{'width': value + '%','background-color': color }">
      
      </div>
    </div>
    <div class="process-text" v-if="text">{{ text }}</div>
  </div>
</template>

<script>
export default {
  name: 'a-process'
}
</script>
<script setup>
import { defineProps, defineEmits, onMounted, ref, watch } from 'vue'
const props = defineProps({
  value: {
    type: [Number],
  },
  text: {
    type: String,
  },
  height: {
    type: [String],
    default: '6px'
  },
  color: {
    type: [String],
    default: 'var(--primary-color)'
  }
});

</script>

<style scoped>
.process-container {
  width: 100%;
  display: flex;
  align-items: center;
}

.process-bg {
  width: 100%;
  background-color: var(--card-background-color);
  border-radius: 999px;
  position: relative;
}

.process-value {
  height: 100%;
  border-radius: 999px;
}

.process-text {
  text-align: center;
  font-size: 14px;
  margin-left: 4px;
}
</style>